home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: netcom.com!clint
- From: clint@netcom.com (Clinton Carr)
- Subject: Reading child pgm's stdout?
- Message-ID: <clintDMCyH6.Ky3@netcom.com>
- Summary: How to read a child's program stdout?
- Keywords: stdout redirection ios streams
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- X-Newsreader: TIN [version 1.2 PL1]
- Date: Tue, 6 Feb 1996 14:19:54 GMT
- Sender: clint@netcom4.netcom.com
-
- Can someone provide a snippet of code that reads the
- stdout of a child's program? If I use Perl, then the
- following statement does it for me.
-
- $answer = system("/usr/local/bin/childpgm.pl");
-
- The above childpgm.pl is writing to stdout.
-
- thanks
-